public class Test {

    public static void main(String[] args) {
        Student student1 = new Student("zhang", 12);
        Student student2 = new Student("hua", 5);
        Namecompare namecompare = new Namecompare();
        int a = namecompare.compare(student1,student2);
        if(a>0){
            System.out.println("名字上张>花");
        }
        else{
            System.out.println("名字上张<花");
        }

    }
}
